<?php
/* Smarty version 3.1.33, created on 2019-12-23 09:55:13
  from 'D:\xampp\htdocs\ps_project\application\views\templates\diner\restaurant.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_5e0080f1ed4846_27626536',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '8f52668dcad474c1df38cf57291c482ef092e528' => 
    array (
      0 => 'D:\\xampp\\htdocs\\ps_project\\application\\views\\templates\\diner\\restaurant.tpl',
      1 => 1577091310,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5e0080f1ed4846_27626536 (Smarty_Internal_Template $_smarty_tpl) {
?><div class="food_lead">
	<div class="bootstrapiso shit">
		<ul class="nav nav-tabs" style="border-bottom-style: none">
			<li class="nav-item">
				<a class="nav-link" data-toggle="tab" href="#all">全部商家</a>
			</li>
			<li class="nav-item" >
				<a class="nav-link" data-toggle="tab" href="#yummy">美食</a>
			</li>
			<li class="nav-item">
				<a class="nav-link" data-toggle="tab" href="#junkfood">快餐便当</a>
			</li>
			<li class="nav-item">
				<a class="nav-link" data-toggle="tab" href="#special">特色菜系</a>
			</li>
			<li class="nav-item">
				<a class="nav-link" data-toggle="tab" href="#global">全球美食</a>
			</li>
			<li class="nav-item">
				<a class="nav-link" data-toggle="tab" href="#night">小吃夜宵</a>
			</li>
			<li class="nav-item">
				<a class="nav-link" data-toggle="tab" href="#sweety">甜品饮食</a>
			</li>
			<li class="nav-item">
				<a class="nav-link" data-toggle="tab" href="#breakfast">早餐</a>
			</li>
		</ul>
		<div class="tab-content">
			<div class="tab-pane fade" id="all"></div>
			<div class="tab-pane fade" id="yummy">
				<ul class="nav nav-pills">
					<li class="nav-item">
						<a class="nav-link active" href="#">小吃炸串</a>
					</li>
					<li class="nav-item">
						<a class="nav-link" href="#">地方菜系</a>
					</li>
					<li class="nav-item">
						<a class="nav-link" href="#">简餐便当</a>
					</li>
					<li class="nav-item">
						<a class="nav-link" href="#">香锅冒菜</a>
					</li>
					<li class="nav-item">
						<a class="nav-link" href="#">汉堡披萨</a>
					</li>
				</ul>
			</div>
			<div class="tab-pane fade" id="junkfood">
				<ul class="nav nav-pills">
					<li class="nav-item">
						<a class="nav-link active" href="#">凌一舟</a>
					</li>
				</ul>
			</div>
			<div class="tab-pane fade" id="special">
				<ul class="nav nav-pills">
					<li class="nav-item">
						<a class="nav-link active" href="#">凌一舟</a>
					</li>
				</ul>
			</div>
			<div class="tab-pane fade" id="global">
				<ul class="nav nav-pills">
					<li class="nav-item">
						<a class="nav-link active" href="#">凌一舟</a>
					</li>
				</ul>
			</div>
			<div class="tab-pane fade" id="night">
				<ul class="nav nav-pills">
					<li class="nav-item">
						<a class="nav-link active" href="#">凌一舟</a>
					</li>
				</ul>
			</div>
			<div class="tab-pane fade" id="sweety">
				<ul class="nav nav-pills">
					<li class="nav-item">
						<a class="nav-link active" href="#">凌一舟</a>
					</li>
				</ul>
			</div>
			<div class="tab-pane fade" id="breakfast">
				<ul class="nav nav-pills">
					<li class="nav-item">
						<a class="nav-link active" href="#">凌一舟</a>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>

<div class="wrapper">
	<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['merchants']->value, 'merchant');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['merchant']->value) {
?>
	<a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value['base_url'];?>
diner/shop/<?php echo $_smarty_tpl->tpl_vars['merchant']->value->id;?>
" class="mera">
		<div class="merblock">
			<div class="merlog">
				<img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value['base_url'];?>
application/views/templates/merchant/upload/<?php echo $_smarty_tpl->tpl_vars['merchant']->value->id;?>
/icon.png" class="merlog-icon"
					 onerror="this.src='<?php echo $_smarty_tpl->tpl_vars['base_url']->value['base_url'];?>
application/views/templates/merchant/upload/default.png';this.onerror=null">
				<span>30分钟</span>
			</div>
			<div class="mer-content">
				<div class="mer-title"><?php echo $_smarty_tpl->tpl_vars['merchant']->value->mname;?>
</div>
				<div>
					<?php
$_smarty_tpl->tpl_vars['i'] = new Smarty_Variable(null, $_smarty_tpl->isRenderingCache);$_smarty_tpl->tpl_vars['i']->step = 1;$_smarty_tpl->tpl_vars['i']->total = (int) ceil(($_smarty_tpl->tpl_vars['i']->step > 0 ? $_smarty_tpl->tpl_vars['merchant']->value->star+1 - (1) : 1-($_smarty_tpl->tpl_vars['merchant']->value->star)+1)/abs($_smarty_tpl->tpl_vars['i']->step));
if ($_smarty_tpl->tpl_vars['i']->total > 0) {
for ($_smarty_tpl->tpl_vars['i']->value = 1, $_smarty_tpl->tpl_vars['i']->iteration = 1;$_smarty_tpl->tpl_vars['i']->iteration <= $_smarty_tpl->tpl_vars['i']->total;$_smarty_tpl->tpl_vars['i']->value += $_smarty_tpl->tpl_vars['i']->step, $_smarty_tpl->tpl_vars['i']->iteration++) {
$_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->iteration === 1;$_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration === $_smarty_tpl->tpl_vars['i']->total;?>
						<img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value['base_url'];?>
application/views/templates/diner/assets/images/star.svg">
					<?php }
}
?>
					<?php
$_smarty_tpl->tpl_vars['i'] = new Smarty_Variable(null, $_smarty_tpl->isRenderingCache);$_smarty_tpl->tpl_vars['i']->step = 1;$_smarty_tpl->tpl_vars['i']->total = (int) ceil(($_smarty_tpl->tpl_vars['i']->step > 0 ? 5-$_smarty_tpl->tpl_vars['merchant']->value->star+1 - (1) : 1-(5-$_smarty_tpl->tpl_vars['merchant']->value->star)+1)/abs($_smarty_tpl->tpl_vars['i']->step));
if ($_smarty_tpl->tpl_vars['i']->total > 0) {
for ($_smarty_tpl->tpl_vars['i']->value = 1, $_smarty_tpl->tpl_vars['i']->iteration = 1;$_smarty_tpl->tpl_vars['i']->iteration <= $_smarty_tpl->tpl_vars['i']->total;$_smarty_tpl->tpl_vars['i']->value += $_smarty_tpl->tpl_vars['i']->step, $_smarty_tpl->tpl_vars['i']->iteration++) {
$_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->iteration === 1;$_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration === $_smarty_tpl->tpl_vars['i']->total;?>
						<img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value['base_url'];?>
application/views/templates/diner/assets/images/whitestar.svg">
					<?php }
}
?>
				</div>
				<div class="mer-activity">
					<i class="mer-pic">保</i>
				</div>
			</div>
		</div>
	</a>
	<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</div>
<?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value['base_url'];?>
application/views/templates/js/jquery.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value['base_url'];?>
application/views/templates/js/popper.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value['base_url'];?>
application/views/templates/js/bootstrap.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
>
	$(window).bind("load resize", function () {
		if ($(window).width() < 1220) {
			$(".wrapper").css("width", "900px")
		}
		if ($(window).width() > 1210) {
			$(".wrapper").css("width", "1200px")
		}
		$(".food_lead").css("width", $(".wrapper").width())
	});
	$(document).ready(function () {
		$(".nav-tabs").children("li").click(function () {
			if ($(this).children("a").attr("href") === "#all") {
				$(this).children('a').css("background-color", "#0089dc")
			} else {
				$(".nav-tabs").children("li").children("a").css("background-color", "white");
				$(this).find('a').css("background-color", "#f7f7f7")
			}
		})
	})
<?php echo '</script'; ?>
>
</body>

</html>
<?php }
}
